var _ajax = require('../../utils/ajax');
var _Server = require('../../utils/server');
Page({

    /**
     * 页面的初始数据
     */
    data: {

    },

    /**
     * 生命周期函数--监听页面加载
     */
    onLoad: function(options) {
        var that = this;
        _ajax.myMedal(function(data) {
            if (data.code == 0) {
                that.setData({
                    indexData: data.data,
                    indexUrl: _Server.url
                });
            }
        }, this);
    }
})